$prefix: 'hs-';

.u-number-input {
	width: 120rpx !important;
}

.#{$prefix}must::before {
		content: "*";
		display: inline-block;
		padding-right: 5px;
		color: #f00;
}
.#{$prefix}full {
  height: 100%;
  width: 100%;
}

.#{$prefix}body-view {
  width: 100%;
  position: absolute;
  top: $header-height;
  bottom: 0;
}
.bc-theme-color {
  color: $theme-color;
}
.#{$prefix}loadmore {
  width: 100%;
  height: 100rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}

.#{$prefix}full-x {
  width: 100%;
}

.#{$prefix}full-y {
  height: 100%;
}

/* flex布局 */
.#{$prefix}flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.#{$prefix}row-start {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.#{$prefix}row-end {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.#{$prefix}row-center {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.#{$prefix}row-between {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.#{$prefix}row-around {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.#{$prefix}col-start {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.#{$prefix}col-end {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.#{$prefix}col-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.#{$prefix}col-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.#{$prefix}col-around {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.#{$prefix}col-evenly {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.#{$prefix}align-start {
  align-items: flex-start;
}

.#{$prefix}align-end {
  align-items: flex-end;
}

.#{$prefix}align-center {
  align-items: center;
}

.#{$prefix}align-stretch {
  align-items: stretch;
}

.#{$prefix}align-baseline {
  align-items: baseline;
}

.#{$prefix}flex-warp {
  flex-wrap: wrap;
}

.#{$prefix}flex-nowarp {
  flex-wrap: nowrap;
}

.#{$prefix}flex-noshrink {
  flex-shrink: 0;
}

.#{$prefix}flex-shrink {
  flex-shrink: 1;
}

.#{$prefix}va-top {
  vertical-align: top;
}

.#{$prefix}va-middle {
  vertical-align: middle;
}

.#{$prefix}va-bottom {
  vertical-align: bottom;
}

@for $i from 1 through 12 {
  .#{$prefix}flex-#{$i} {
    flex: $i;
  }
}

/* 定位布局 */
.#{$prefix}rela,
.#{$prefix}relative {
  position: relative;
}

.#{$prefix}abso,
.#{$prefix}absolute {
  position: absolute;
}

.#{$prefix}abso-full,
.#{$prefix}absolute-full {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

.#{$prefix}abso-center,
.#{$prefix}absolute-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.#{$prefix}abso-bottom,
.#{$prefix}absolute-bottom {
  position: absolute;
  bottom: 0;
}

.#{$prefix}fixed {
  position: fixed;
}

.#{$prefix}fixed-full {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

.#{$prefix}fixed-center {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.#{$prefix}fixed-bottom {
  position: fixed;
  bottom: 0;
}

@for $i from -5 through 30 {
  .#{$prefix}zindex-#{$i} {
    z-index: $i;
  }
}

/* float布局 */
.#{$prefix}float-left {
  float: left;
}

.#{$prefix}float-right {
  float: right;
}

.#{$prefix}float-none {
  float: none;
}

.#{$prefix}clear {
  clear: both;
}

.#{$prefix}clear-left {
  clear: left;
}

.#{$prefix}clear-right {
  clear: right;
}

/* 文字 */
.#{$prefix}text-left {
  text-align: left;
}

.#{$prefix}text-right {
  text-align: right;
}

.#{$prefix}text-center {
  text-align: center;
}

.#{$prefix}text-justify {
  text-align: justify;
}

.#{$prefix}text-white,
.#{$prefix}color-white {
  color: #ffffff;
}

.#{$prefix}color-grey {
  color: $uni-text-color-grey;
}
.#{$prefix}color-gray {
  color: $uni-text-color-gray;
}

.#{$prefix}color-price {
  color: #ff3e16;
}

.#{$prefix}color-theme {
  color: $theme-color;
}

@for $i from 20 through 48 {
  @if $i % 2 == 0 {
    .#{$prefix}fz-#{$i} {
      font-size: #{$i}rpx;
    }
  }
}

@for $i from 60 through 160 {
  @if $i % 10 == 0 {
    .#{$prefix}fz-#{$i} {
      font-size: #{$i}rpx;
    }
  }
}

@for $i from 1 through 10 {
  .#{$prefix}line-#{$i} {
	  overflow: hidden;
	      word-break: break-all;
	      text-overflow: ellipsis;
	      display: -webkit-box;
	      -webkit-box-orient: vertical;
    -webkit-line-clamp: $i;
  }
}

.#{$prefix}line-height,
.#{$prefix}l-h {
  line-height: 1;
}

.#{$prefix}line-height-12,
.#{$prefix}l-h-12 {
  line-height: 1.2;
}

.#{$prefix}line-height-15,
.#{$prefix}l-h-15 {
  line-height: 1.5;
}

.#{$prefix}line-height-20,
.#{$prefix}l-h-20 {
  line-height: 2;
}

.#{$prefix}f-w-2 {
  font-weight: 200;
}

.#{$prefix}f-w-4 {
  font-weight: 400;
}

.#{$prefix}f-w-5 {
  font-weight: 500;
}

.#{$prefix}f-w-6 {
  font-weight: 600;
}

.#{$prefix}f-w-8 {
  font-weight: 800;
}

.#{$prefix}f-w-bold {
  font-weight: bold;
}

.#{$prefix}text-warp {
  text-wrap: break-word;
}

/* 动画 */
@keyframes #{$prefix}frames-rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.#{$prefix}ani-rotate {
  animation: bc-frames-rotate 1s infinite linear;
}

/* 阴影渐变 */

/* 边框 */
.#{$prefix}border {
  border: solid $border-color 2rpx;
}

.#{$prefix}border-left,
.#{$prefix}border-l {
  border-left: solid $border-color 2rpx;
}

.#{$prefix}border-right,
.#{$prefix}border-r {
  border-right: solid $border-color 2rpx;
}

.#{$prefix}border-bottom,
.#{$prefix}border-b {
  border-bottom: solid $border-color 2rpx;
}

.#{$prefix}border-top,
.#{$prefix}border-t {
  border-top: solid $border-color 2rpx;
}

// 外边距：生成 4的倍数以及10的倍数项
@for $i from 0 through 200 {
  @if $i % 4 == 0 {
    .#{$prefix}margin-#{$i},
    .#{$prefix}m-#{$i} {
      margin: #{$i}rpx;
    }

    .#{$prefix}margin-row-#{$i},
    .#{$prefix}m-row-#{$i} {
      margin-left: #{$i}rpx;
      margin-right: #{$i}rpx;
    }

    .#{$prefix}margin-col-#{$i},
    .#{$prefix}m-col-#{$i} {
      margin-top: #{$i}rpx;
      margin-bottom: #{$i}rpx;
    }
  }

  @if $i % 10 == 0 {
    @if $i % 4 != 0 {
      .#{$prefix}margin-#{$i},
      .#{$prefix}m-#{$i} {
        margin: #{$i}rpx;
      }

      .#{$prefix}margin-row-#{$i},
      .#{$prefix}m-row-#{$i} {
        margin-left: #{$i}rpx;
        margin-right: #{$i}rpx;
      }

      .#{$prefix}margin-col-#{$i},
      .#{$prefix}m-col-#{$i} {
        margin-top: #{$i}rpx;
        margin-bottom: #{$i}rpx;
      }
    }
  }
}

// 单外边距
@for $i from 0 through 200 {
  @each $j in left, right, top, bottom {
    $k: l;

    @if $j == right {
      $k: r;
    } @else if $j == top {
      $k: t;
    } @else if $j == bottom {
      $k: b;
    }

    @if $i % 4 == 0 {
      .#{$prefix}margin-#{$j}-#{$i} {
        margin-#{$j}: #{$i}rpx;
      }

      .#{$prefix}m-#{$k}-#{$i} {
        margin-#{$j}: #{$i}rpx;
      }
    }

    @if $i % 10 == 0 {
      @if $i % 4 != 0 {
        .#{$prefix}margin-#{$j}-#{$i} {
          margin-#{$j}: #{$i}rpx;
        }

        .#{$prefix}m-#{$k}-#{$i} {
          margin-#{$j}: #{$i}rpx;
        }
      }
    }
  }
}

// 内边距：生成 4的倍数以及10的倍数项
@for $i from 0 through 200 {
  @if $i % 4 == 0 {
    .#{$prefix}padding-#{$i} {
      padding: #{$i}rpx;
    }

    .#{$prefix}p-#{$i} {
      padding: #{$i}rpx;
    }

    .#{$prefix}padding-row-#{$i},
    .#{$prefix}p-row-#{$i} {
      padding-left: #{$i}rpx;
      padding-right: #{$i}rpx;
    }

    .#{$prefix}padding-col-#{$i},
    .#{$prefix}p-col-#{$i} {
      padding-top: #{$i}rpx;
      padding-bottom: #{$i}rpx;
    }
  }

  @if $i % 10 == 0 {
    @if $i % 4 != 0 {
      .#{$prefix}padding-#{$i} {
        padding: #{$i}rpx;
      }

      .#{$prefix}p-#{$i} {
        padding: #{$i}rpx;
      }

      .#{$prefix}padding-row-#{$i},
      .#{$prefix}p-row-#{$i} {
        padding-left: #{$i}rpx;
        padding-right: #{$i}rpx;
      }

      .#{$prefix}padding-col-#{$i},
      .#{$prefix}p-col-#{$i} {
        padding-top: #{$i}rpx;
        padding-bottom: #{$i}rpx;
      }
    }
  }
}

// 单内边距
@for $i from 0 through 200 {
  @each $j in left, right, top, bottom {
    $k: l;

    @if $j == right {
      $k: r;
    } @else if $j == top {
      $k: t;
    } @else if $j == bottom {
      $k: b;
    }

    @if $i % 4 == 0 {
      .#{$prefix}padding-#{$j}-#{$i} {
        padding-#{$j}: #{$i}rpx;
      }

      .#{$prefix}p-#{$k}-#{$i} {
        padding-#{$j}: #{$i}rpx;
      }
    }

    @if $i % 10 == 0 {
      @if $i % 4 != 0 {
        .#{$prefix}padding-#{$j}-#{$i} {
          padding-#{$j}: #{$i}rpx;
        }

        .#{$prefix}p-#{$k}-#{$i} {
          padding-#{$j}: #{$i}rpx;
        }
      }
    }
  }
}

/* 透明度 */
@for $i from 0 through 10 {
  .#{$prefix}opacity-#{$i} {
    opacity: $i / 10;
  }

  .#{$prefix}opa-#{$i} {
    opacity: $i / 10;
  }
}

/* 圆角 */
.#{$prefix}round {
  border-radius: 50%;
}

@for $i from 0 through 60 {
  @if $i % 4 == 0 {
    .#{$prefix}radius-#{$i} {
      border-radius: #{$i}rpx;
    }
  }

  @if $i % 10 == 0 {
    @if $i % 4 != 0 {
      .#{$prefix}radius-#{$i} {
        border-radius: #{$i}rpx;
      }
    }
  }
}

// 其他辅助类
.#{$prefix}box-content {
  box-sizing: content-box;
}

.#{$prefix}box-border {
  box-sizing: border-box;
}

.#{$prefix}block {
  display: block;
}

.#{$prefix}inline-block {
  display: inline-block;
}

.#{$prefix}inline {
  display: inline;
}

// 颜色
.#{$prefix}white {
  background: #ffffff;
}

.#{$prefix}grey {
  background: #f3f3f3;
}

// 其他
.#{$prefix}must {
  &::before {
    content: '*';
    color: #f00;
    padding-right: 6rpx;
  }
}
// 横线
.#{$prefix}line-x {
  background: #D9D9D9;
  width: 100%;
  height: 1rpx;
  margin: 36rpx 0rpx;
}